package com.daigou.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Pay implements Serializable {
    private Long id;

    private Long shopId;

    private Long orderId;

    private String buyerCode;

    private String buyerName;

    private String payMethod;
    
    private String payMethodName;

    private String payAccount;

    private BigDecimal payMoney;

    private String remark;
    
    private String payPic;
    //0,支付中,1,确认支付,2,支付成功
    private Integer status;
    private String statusName;

    public String getStatusName() {
		return statusName;
	}

	public void setStatusName(Integer status) {
		if(status == 0){
			this.statusName = "支付中";
		}else if(status == 1){
			this.statusName = "待店主确认";
		}else if(status == 2){
			this.statusName = "支付成功";
		}
	}

    private Long creatorId;

    private Date createdTime;

    private Long modifierId;

    private Date modifiedTime;
    //-1：删除，0，草稿，1，正常
    private Integer dr=1;
    
    private Long ts = 0L;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getBuyerCode() {
        return buyerCode;
    }

    public void setBuyerCode(String buyerCode) {
        this.buyerCode = buyerCode == null ? null : buyerCode.trim();
    }

    public String getBuyerName() {
        return buyerName;
    }

    public void setBuyerName(String buyerName) {
        this.buyerName = buyerName == null ? null : buyerName.trim();
    }

    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
    	this.payMethod = payMethod == null ? "3" : payMethod.trim();
    }

    public String getPayMethodName() {
		return payMethodName;
	}

	public void setPayMethodName(String payMethod) {
		if("1".equals(payMethod)){
    		this.payMethodName = "支付宝支付";
    	}else if("2".equals(payMethod)){
    		this.payMethodName = "微信支付";
    	}else{
    		this.payMethodName = "其他支付";
    	}
	}

	public String getPayAccount() {
        return payAccount;
    }

    public void setPayAccount(String payAccount) {
        this.payAccount = payAccount == null ? null : payAccount.trim();
    }

    public BigDecimal getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getPayPic() {
		return payPic;
	}

	public void setPayPic(String payPic) {
		this.payPic = payPic;
	}

	public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Long getModifierId() {
        return modifierId;
    }

    public void setModifierId(Long modifierId) {
        this.modifierId = modifierId;
    }

    public Date getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    public Integer getDr() {
        return dr;
    }

    public void setDr(Integer dr) {
        this.dr = dr;
    }

	public Long getTs() {
		return ts;
	}

	public void setTs(Long ts) {
		this.ts = ts;
	}
}